<?php
namespace app\model;
use think\admin\Model;

use think\model\relation\HasMany;

/**
 * 视频课程
 * @class ProductCourse
 * @package app\model
 */
class ProductCourse extends Model
{
    protected $table = "hjz_product_course";

    public function product(){
        return $this->belongsTo(Product::class,'product_id');
    }

    public function chapter(){
        return $this->belongsTo(ProductChapter::class,'parent_id');
    }
}